package homework;

import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.Arrays;

public class Role implements Serializable {
    private static final long serialVersionUID=1l;
    private String username;
    private String age;
    private String address;
    private String[] hobby;
    private String sex;
    private String birthday;

    public Role() {
    }

    public Role(String username, String age, String address, String[] hobby, String sex, String birthday) {
        this.username = username;
        this.age = age;
        this.address = address;
        this.hobby = hobby;
        this.sex = sex;
        this.birthday = birthday;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return age
     */
    public String getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(String age) {
        this.age = age;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return hobby
     */
    public String[] getHobby() {
        return hobby;
    }

    /**
     * 设置
     * @param hobby
     */
    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return birthday
     */
    public String getBirthday() {
        return birthday;
    }

    /**
     * 设置
     * @param birthday
     */
    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String toString() {
        return "Role{ username = " + username + ", age = " + age + ", address = " + address + ", hobby = " + Arrays.toString(hobby) + ", sex = " + sex + ", birthday = " + birthday + "}";
    }
}
